package com.baichang.taoshunda.entity.em;

/**
 * Created by Administrator on 2018/1/30 0030.
 */
public enum payHistory {


    广告位(1), 诚信商家(2), 每日特价(3), 本地生活服务(4);

    private Integer code;

    private payHistory(Integer code) {
        this.code = code;
    }

    public static payHistory valueOfCode(Integer code) {
        payHistory[] states = payHistory.values();
        for (payHistory state : states) {
            if (state.getCode().equals(code)) {
                return state;
            }
        }
        return null;
    }

    public Integer getCode() {
        return this.code;
    }

    @Override
    public String toString() {
        return String.valueOf(this.code);
    }
}
